package main

import (
	"algorithms/lib/tree"
	"fmt"
)

func main() {
	st := tree.BuildSegmentTree([]int{1, 5, 3, 7, 3, 2, 5, 7})
	fmt.Println(st.Tree)
	fmt.Println(len(st.Tree))
	fmt.Println(st.Search(1, 4))
}
